import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/student/home/Home.vue'

Vue.use(VueRouter)

const routes = [
	{
	  path: '/t',
	  name: 'test',
	  component: () => import(/* webpackChunkName: "login" */ '@/views/test.vue')
	},
	{
	  path: '/',
	  name: 'login',
	  component: () => import(/* webpackChunkName: "login" */ '@/views/login/Login.vue')
	},
	
	//综合咨询
	{
	  path: '/newsList',
	  name: 'newsList',   
	  component: () => import(/* webpackChunkName: "news" */ '@/views/news/News.vue')
	},
	{
	  path: '/newsDetail',
	  name: 'newsDetail',
	  component: () => import(/* webpackChunkName: "news" */ '@/views/news/NewsDetail.vue')
	},
	
	
	//学生用户 ===============================================
  {
    path: '/studentHome',
    name: 'studentHome',
    component: () => import(/* webpackChunkName: "student" */ '@/views/student/home/Home.vue')
  },	 
	//综合咨询(参见上)
	
	//实习企业
	{
	  path: '/student/enterpriseList',
	  name: 'enterpriseList',
	  component: () => import(/* webpackChunkName: "student" */ '@/views/student/enterprise/EnterpriseList.vue')
	},	
	{
	  path: '/student/enterpriseEdit',
	  name: 'enterpriseEdit',
	  component: () => import(/* webpackChunkName: "student" */ '@/views/student/enterprise/EnterpriseEdit.vue')
	},

	// 实习日记
	{
	  path: '/student/diaryList',
	  name: 'diaryList',
	  component: () => import(/* webpackChunkName: "student" */ '@/views/student/diary/DiaryList.vue')
	},	
	{
	  path: '/student/diaryEdit',
	  name: 'diaryEdit',
	  component: () => import(/* webpackChunkName: "student" */ '@/views/student/diary/DiaryEdit.vue')
	},
	{
	  path: '/student/diaryDetail',
	  name: 'diaryDetail',
	  component: () => import(/* webpackChunkName: "student" */ '@/views/student/diary/DiaryDetail.vue')
	},	
	// 实习评教（对教师)
	{
	  path: '/student/evaluationList',
	  name: 'evaluationList',
	  component: () => import(/* webpackChunkName: "student" */ '@/views/student/evaluation/EvaluationList.vue')
	},	
	{
	  path: '/student/evaluationEdit',
	  name: 'evaluationEdit',
	  component: () => import(/* webpackChunkName: "student" */ '@/views/student/evaluation/EvaluationEdit.vue')
	},
	
	
	//企业用户 ===============================================
	{
	  path: '/enterpriseHome',
	  name: 'enterpriseHome',
	  component: () => import(/* webpackChunkName: "enterprise" */ '@/views/enterprise/home/Home.vue')
	},
	//信息管理
	{
	  path: '/infomation/infomationEdit',
	  name: 'infomationEdit',
	  component: () => import(/* webpackChunkName: "enterprise" */ '@/views/enterprise/infomation/InfomationEdit.vue')
	},
	//企业咨询
	{
	  path: '/consult/consultList',
	  name: 'consultList',
	  component: () => import(/* webpackChunkName: "enterprise" */ '@/views/enterprise/consult/ConsultList.vue')
	},	
	{
	  path: '/consult/consultEdit',
	  name: 'consultEdit',
	  component: () => import(/* webpackChunkName: "enterprise" */ '@/views/enterprise/consult/ConsultEdit.vue')
	},
	
	//实习反馈	
	{
	  path: '/feedback/feedbackList',
	  name: 'feedbackList',
	  component: () => import(/* webpackChunkName: "enterprise" */ '@/views/enterprise/feedback/FeedbackList.vue')
	},	
	{
	  path: '/feedback/feedbackEdit',
	  name: 'feedbackEdit',
	  component: () => import(/* webpackChunkName: "enterprise" */ '@/views/enterprise/feedback/FeedbackEdit.vue')
	},	
	
	
	//教师用户 ===============================================
	{
	  path: '/teacherHome',
	  name: 'teacherHome',
	  component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/home/Home.vue')
	},
	
	//综合咨询（参见上）
	
	// 学生管理
	{
	  path: '/teacher/studentList',
	  name: 'studentList',
	  component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/student/StudentList.vue')
	},	
	// {
	//   path: '/teacher/studentEdit',
	//   name: 'studentEdit',
	//   component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/student/StudentEdit.vue')
	// },
	
	// 实习日记批阅
	//	所有学生日记汇总列表
	{
	  path: '/teacher/diarySummaryList',
	  name: 'diarySummaryList',
	  component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/diary/DiarySummaryList.vue')
	},
	//	指定学生日记列表
	{
	  path: '/teacher/diaryStudentList',
	  name: 'diaryStudentList',
	  component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/diary/DiaryStudentList.vue')
	},	
	{
	  path: '/teacher/diaryStudentEdit',
	  name: 'diaryStudentEdit',
	  component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/diary/DiaryStudentEdit.vue')
	},
	
	// 学生企业管理
	{
	  path: '/teacher/stuEntList',
	  name: 'stuEntList',
	  component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/enterprise/StuEntList.vue')
	},	
	// {
	//   path: '/teacher/stuEntEdit',
	//   name: 'stuEntEdit',
	//   component: () => import(/* webpackChunkName: "teacher" */ '@/views/teacher/enterprise/StuEntEdit.vue')
	// },
	
]

const router = new VueRouter({  
  base: process.env.BASE_URL,
  routes
})

export default router
